#coding:gbk

def f(n, m):

    A = n ** m

    B = 1
    while m > 0:
        B *= n
        n -= 1
        m -= 1

    return  1 - 1.0 / ((A / B) * 1.0)



def main():
    n = 65536
    for m in range(1, n):
        r = f(n, m)
        print m, r

main()

